package com.copa.module.order.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copa.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * @author copa
 * @createDate 2021-01-28
 * @function   t_order_log表实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_order_log")
@ApiModel(value="OrderLog对象", description="")
@Builder
public class OrderLogEntity extends BaseEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单编号")
    @TableField("order_id")
    private String orderId;

    @ApiModelProperty(value = "子订单编号")
    @TableField("order_goods_id")
    private String orderGoodsId;

    @ApiModelProperty(value = "订单日志")
    @TableField("message")
    private String message;

    @ApiModelProperty(value = "订单修改后状态")
    @TableField("order_status")
    private Integer orderStatus;

    @ApiModelProperty(value = "子订单修改后状态")
    @TableField("sub_order_status")
    private Integer subOrderStatus;


    public static final String ORDER_ID = "order_id";

    public static final String ORDER_GOODS_ID = "order_goods_id";

    public static final String MESSAGE = "message";

    public static final String ORDER_STATUS = "order_status";

    public static final String SUB_ORDER_STATUS = "sub_order_status";


}
